-- GENERATED SPELL FOR [Irondeep Explorer] --


function spell0_13099(pUnit, Event) --@Cone of Cold,Self--
pUnit:FullCastSpellOnTarget(15244,pUnit)
pUnit:RegisterEvent('Sorts_13099', 8270, 1)
end

function spell1_13099(pUnit, Event) --@Fire Blast,n/a--
pUnit:FullCastSpellOnTarget(14145,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13099', 615, 1)
end

function spell2_13099(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(15242,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13099', 3000, 1)
end

function spell3_13099(pUnit, Event) --@Frost Armor,Self--
pUnit:FullCastSpellOnTarget(12544,pUnit)
pUnit:RegisterEvent('Sorts_13099', 0, 1)
end

function Sorts_13099(pUnit, Event)
local choix_sorts_13099 = math.random(0, 3)
if choix_sorts_13099 == 0 then
pUnit:RegisterEvent('spell0_13099', 1, 1)
end
if choix_sorts_13099 == 1 then
pUnit:RegisterEvent('spell1_13099', 1, 1)
end
if choix_sorts_13099 == 2 then
pUnit:RegisterEvent('spell2_13099', 1, 1)
end
if choix_sorts_13099 == 3 then
pUnit:RegisterEvent('spell3_13099', 1, 1)
end
end

function mob13099_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_13099', math.random(1500, 3000), 1)
end

function mob13099_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13099_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13099_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(13099, 1, 'mob13099_Action')
RegisterUnitEvent(13099, 2, 'mob13099_Leave')
RegisterUnitEvent(13099, 3, 'mob13099_Kill')
RegisterUnitEvent(13099, 4, 'mob13099_Die')
